package nu.boomboom.smartfsync.impl;

import java.io.File;
import java.util.Iterator;

import nu.boomboom.smartfsync.IDifferences;
import nu.boomboom.smartfsync.IDir;
import nu.boomboom.smartfsync.IElement;

public class DirImpl implements IDir {
	private final File dir;

	public DirImpl(File file) {
		this.dir = file;

	}

	@Override
	public Iterator<IElement> eachFile() {
		return new FilesIterator(dir);
	}

	@Override
	public String name() {
		return dir.getName();
	}

	@Override
	public IDifferences differencesFrom(IDir dir) {
		// TODO Auto-generated method stub
		return null;
	}

	File dir() {
		return dir;
	}

}
